<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/include/header.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${basePageTitle}</title>
<link href="<%=request.getContextPath()%>/css/um/versionInfo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
head = document.getElementsByTagName("head")[0];
cssLink = document.createElement("link");
cssLink.rel = cssLink.rev = "stylesheet";
cssLink.type = "text/css";
cssLink.media = "screen";
head.appendChild(cssLink);
if ($.browser.msie) {
	(function() {
		var e = "article,aside,details,figure,footer,header,nav,section"
				.split(','), i = e.length;
		while (i--) {
			document.createElement(e[i]);
		}
	})();
	cssLink.href = "${baseURL}/css/download_ie.css";
} else {
	cssLink.href = "${baseURL}/css/download.css";
}


	$(function(){
		var versionId="${param.version_Id}";
		loadDetailData(versionId);
	});
	function loadDetailData(versionId){
		$.ajax({
			type: "get",
			url: "${baseURL}/versioninfo/detail.action",
					data : "version_Id=" + versionId,
					dataType : "json",
					success : function(result) {
						var s1 = "";
						var s2 = "";
						var s3 = "";
						for ( var i = 0; i < result.versionDetailInfoVOs.length; i++) {
							s2 += "<li>"
									+ result.versionDetailInfoVOs[i].seq_Num
									+ "、"
									+ result.versionDetailInfoVOs[i].content
									+ "</li>";
						}
						s1 = "<h2>恒拓运价魔方"
								+ result.versionNumber
								+ "正式发布啦！</h2><span class='time'>发布日期："
								+ result.publishTime_str
								+ "</span><div class='updateContent'><ul><li style='font-size:16px;'>恒拓运价魔方"
								+ result.versionNumber + "更新内容如下:</li>";
						s3 = "</ul></div>";
						$(".detailInfo").html(s1 + s2 + s3);
					}
				});
	}
</script>
</head>
<body>
	<header>
		<%@ include file="/include/start/start_header1.jsp"%>
	</header>
	<center>
		<div class="main_version">
			<div class="main_version_t">
				<span></span>
			</div>
			<div class="main_version_b">
				<div class="detailInfo"></div>
			</div>
			<div class="main_version_f"></div>
		</div>
	</center>
	<footer>
	<%@ include file="/include/start/start_footer.jsp"%>
	</footer>
</body>
</html>